package com.pxst.dashboard.controller;

import com.pxst.dashboard.resp.InfoResp;
import com.pxst.dashboard.service.InfoService;
import com.pxst.resp.ApiResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author rj
 * @create 2023-11-02-15:16
 */
@RestController
@Api(tags = "总览相关接口")
public class DashBoardController {

    @Autowired
    private InfoService infoService;

    @GetMapping("/status/info")
    @ApiOperation("主后台状态面板")
    public ApiResp<InfoResp> info(){
        return infoService.getInfo();
    }
}
